package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.FactDeviceLinkageRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FactDeviceLinkageRuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FactDeviceLinkageRule record);

    int insertSelective(FactDeviceLinkageRule record);

    FactDeviceLinkageRule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FactDeviceLinkageRule record);

    int updateByPrimaryKey(FactDeviceLinkageRule record);

    int getCount(@Param("where")String where);

    List<FactDeviceLinkageRule> findWhereList(@Param("where")String where, @Param("order")String order);

    List<FactDeviceLinkageRule> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);

    int batchInsert(@Param("record") FactDeviceLinkageRule record, @Param("ids")  String ids);

}